package com.cloud.common.constants;

/**
 * 接口认证/白名单列表
 *
 * @author yzj
 */
public class AuthBlankList {

    //  GateWay 白名单
    public static String[] gateWayBlankList() {
        return new String[]{"/*/*/*/inAuth/**", "/*/*/inAuth/**", "/webSocket/**", "/*/doc.html",
                "/*/swagger-resources/**", "/*/v2/**", "/*/v3/**", "/*/webjars/**"};
    }

    // SpringMVC 白名单
    public static String[] securityBlankList() {
        return new String[]{"/**.html", "/**.css", "/**.js", "/**.svg", "/doc.html",
                "/swagger-resources/**", "/v3/**", "/webjars/**", "/instances/**", "/actuator/**",
                "/*/*/inAuth/**", "/webSocket/**"};
    }

    // Monitor 白名单
    public static String[] monitorBlankList() {
        return new String[]{"/doc.html", "/swagger-resources/**", "/v3/**", "/webjars/**",
                "/instances/**", "/actuator/**", "/*/*/inAuth/**", "/webSocket/**"};
    }

}
